import request from '@/utils/request'

// left 1-1
export function IndexGasGetNum(id) {
    return request({
        url: '/IndexGas/GetNum?id='+id,
        method: 'get'
    })
}

// left 1-2
export function IndexGasGetInfo() {
    return request({
        url: '/IndexGas/GetInfo',
        method: 'get'
    })
}

// left 2 
export function AlarmGasList() {
    return request({
        url: '/IndexGas/list',
        method: 'get',
    })
}

// right 1
export function IndexGasGetGasNum() {
    return request({
        url: '/IndexGas/getGasNum',
        method: 'get'
    })
}

// right 2
export function IndexGasGetListAlarmGas() {
    return request({
        url: '/IndexGas/getListAlarmGas',
        method: 'get',

    })
}

// right 3
export function IndexGasGetLocationNum() {
    return request({
        url: '/IndexGas/getLocationNum',
        method: 'get'
    })
}
/**
 * 近一周主机报警
 * @param {主键} pid
 */
export function getHostDateAlarm() {
    return request({
      url: '/dust/Index/getHostDateAlarm',
      method: 'get'
    })
  }


// 获取传感器位置信息
export function IndexGasChannelList() {
    return request({
        url: '/IndexGas/ChannelList',
        method: 'get'
    })
}
// cad 保存位置
export function IndexGasEditGasChannel(data) {
    return request({
        url: '/IndexGas/EditGasChannel',
        method: 'post',
        data
    })
}
//获取分站名称
export function getSubstationInfor() {
    return request({
        url: '/IndexGas/getSubstationInfor',
        method: 'get'
    })
}
//当前监测通道
export function GetDataDto() {
    return request({
      url: 'RealTimeGasData/GetDataDto',
      method: 'get',
    })
  }
  //getMachineList
  export function getMachineList() {
    return request({
      url: '/dust/Index/getMachineList',
      method: 'get',
    })
  }
//addMachineList
export function addMachineList(data) {
    return request({
      url: '/dust/Index/addMachineList',
      method: 'post',
      data
    })
  }


